import service from '.'
import { loginForm } from '../type/login'
export function login(data: loginForm) {
  return service({
    url: '/login',
    method: "post",
    data
  })
}

export function getGoodsList() {
  return service({
    url: '/goodlist',
    method: 'get',
  })
}

export function getUserList() {
  return service({
    url: '/userlist',
    method: 'get',
  })
}

export function getRoleList() {
  return service({
    url: '/rolelist',
    method: 'get',
  })
}
